@{block #content}

<h1>{$title}</h1>

<script type="text/javascript">
    $(function() {
        $("#frmdatepickerForm-date").datepicker( { dateFormat : 'yy-mm-dd' } );
    });
</script>

<div class="searchForm">
{control datepickerForm}
</div>

{snippet aclLogs}
    <div>
        {if count($logs) > 0}

            {control paginator}

            <table class="smallerTable">
                <tr>
                    <th>{!_"ID"}</th>
                    <th>{!_"User ID"}</th>
                    <th>{!_"Time"}</th>
                    <th>{!_"Action"}</th>
                    <th>{!_"Role"}</th>
                    <th>{!_"Resource"}</th>
                    <th>{!_"Privilege"}</th>
                    <th>{!_"Permission"}</th>
                </tr>
                {foreach $logs as $log}
                <tr>
                    {foreach $log as $item}
                        <td>{$item}</td>
                    {/foreach}
                </tr>
                {/foreach}
            </table>

        {else}
            <div>{!_'No logs available.'}</div>
        {/if}
    </div>
{/snippet}